<template>
  <div class="model-form">
    <el-page-header @back="goBack" content="角色详情">
    </el-page-header>
    <el-form class="viewForm" label-width="80px">
            <el-col :span="12">
                <el-form-item label="角色名">
                    <div v-html="viewModel.name"></div>
                </el-form-item>
            </el-col>
            <el-col :span="12">
                <el-form-item label="角色别名">
                    <div v-html="viewModel.alias"></div>
                </el-form-item>
            </el-col>
            <el-col :span="12">
                <el-form-item label="排序号">
                    <div v-html="viewModel.sortNum"></div>
                </el-form-item>
            </el-col>
            <el-col :span="12">
                <el-form-item label="角色描述">
                    <div v-html="viewModel.description"></div>
                </el-form-item>
            </el-col>
    </el-form>
  </div>
</template>

<script>
    import common from "@/mixins/common.js";
    export default {
        name: "tenantuserrole_view",
        mixins: [common],
        data() {
            return {
                viewModel: {},
                activeIndex: "1"
            }
        },
        async mounted() {
            let id = this.$route.query.id;
            let data = {};
            data.id = id;
            let res = await this.$http.form("/tenantRest/tenantuserrole/view.htm", data);
            if (res.code === 0) {
                this.viewModel = res;
            }
        }
    }
</script>

<style scoped>

</style>